package com.servicebuck.database;

import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;

public class PersistenceUtil {

	private static EntityManagerFactory emFactory;
	static{
		emFactory = Persistence.createEntityManagerFactory("servicebuck");
	}
	
	public static EntityManagerFactory getEntityManagerFactory(){
		return emFactory;
	}
	public static void shutDown(){
		emFactory.close();
	}
}
